package com.bupt.vueblog.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author 谭继好
 * @Description 前端展示的简要博客信息，点击可以查看具体的博客信息
 * @date 2024-04-10 20:18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BriefArticleVO {

    private Integer id;
    private Integer userId;
    private String title;
    private Integer likeNum;
    private Integer collectNum;
    private Integer commentNum;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    private Boolean isLiked;
    private Boolean isCollected;
}
